﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>测试laugh的JS工具</title>
    <script src="Content/Js/laugh.js/laugh.date.js" type="text/javascript"></script>
    <script src="Content/Js/laugh.js/laugh.number.js" type="text/javascript"></script>
    <script src="Content/Js/laugh.js/laugh.string.js" type="text/javascript"></script>
    <script src="Content/Js/laugh.js/laugh.util.js" type="text/javascript"></script>
    <script type="text/javascript">
        var sb = new StringBuilder();
        sb.append("this is my {0}. And my wife {0}".format("zzhome")).append("\r\n");
        sb.append(new Date().format("yyyy-MM-dd HH:mm:ss")).append("\r\n");
        sb.append(new Date().format("yyyy-MM-dd E HH:mm:ss")).append("\r\n");
        sb.append(new Date().format("yyyy-MM-dd EE HH:mm:ss")).append("\r\n");
        sb.append(new Date().format("yyyy-MM-dd EEE HH:mm:ss")).append("\r\n");
        sb.append((12345678).separateByComma()).append("\r\n");
        sb.append((12345678).separateByComma2()).append("\r\n");

        var id = "510181198507294918".isIdNo();
        sb.append("id:" + id).append("\r\n");

        alert(sb.toString());
    </script>
</head>
<body>
</body>
</html>
